package main;

/**
 * Created by liwei.b on 2016/6/25.
 */
public class RedisServerConfig {
    public RedisServerConfig() {
        this.setPort(6379);
    }

    public RedisServerConfig(String theHost) {
        this.setHost(theHost);
        this.setPort(6379);
    }

    public RedisServerConfig(String theHost, int thePort) {
        this.setHost(theHost);
        this.setPort(thePort);
    }

    public RedisServerConfig(String theHost, int thePort, String thePassword) {
        this.setHost(theHost);
        this.setPort(thePort);
        this.setPassword(thePassword);
    }

    private String host;
    private int port;
    private String password;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
